package com.hzit.service.impl;

import com.alibaba.druid.filter.AutoLoad;
import com.hzit.entity.Student;
import com.hzit.mapper.StudentMapper;
import com.hzit.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 类名：
 * 作者：WF
 * 功能：
 */
@Service
public class StudentServiceImpl implements StudentService {
	@Autowired
	private StudentMapper studentMapper;

	//1. 查询所有学生
	@Override
	public List<Student> findAll() {
		return studentMapper.findAll();
	}
}
